<style type="text/css">
.carousel-inner .item img{
	max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
	height:82px;
}
.star-rate {margin-left:0}
.fe-floatright-bottom a {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    background-color: #ff9999;
    color: #fff;
    line-height: 0.7rem;
	font-size:0.45rem;
    margin: 0.5rem auto;
    margin-right: 0;
}
.fe-floatright-bottom a .icon {
    color: #fff;
    font-size: 0.6rem;
    height: 0.6rem;
	line-height: 1rem;
    opacity: 1;
}
</style>

<div class='fui-page fui-page-current' ng-if="pagedata.op=='main'">
    <div class="fui-content" style="margin-bottom:2.2rem">
	<div class="sort" style="top:0.2rem">
		<div class="fui-list-group usergroup" style="background:#fff" ng-repeat="item in pagedata.list">
            <div class="fui-list">
                <div class="fui-list-media userlogo" href="javascript:;" ng-click="access_json('jy_edu/body_list/detail/id='+item.id)">
                    <img class="round" style="width:4rem;height:4rem" ng-src="{{tomedia(item.avatar) || '../core/resource/images/noavatar.gif'}}">
                </div>
               <div class="fui-list-inner userinfo" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_edu/body_list/detail/id='+item.id)">
                    <div class="title" style="font-size:0.76rem;"><span>{{item.name}}</span><span style="float:right;color:red;font-size:0.65rem">{{item.classttile || '无班'}}</span></div>
					<div class="subtitle" style="-webkit-line-clamp:2;height:1.5rem">
						最近课时：{{item.lessonlast || '暂无课时'}}
					</div>
					<div class="btn btn-sm btn-default-o order-delete r-f" href="javascript:;" ng-click="access_json('jy_edu/body_list/detail/id='+item.id)">详情</div>
					<div ng-if="item.isxue==1" class="btn btn-sm btn-default-o order-delete r-f" style="margin-right:0.5rem" href="javascript:;" ng-click="access_json('jy_edu/body_out/edit/bodyid='+item.id)">请假</div>
                </div>
            </div>
		</div>
		<div ng-show="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		<div class="content-empty" ng-show="!pagedata.list || pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">暂时没有添加学员！</p> 
		</div>
		<div style="text-align:center">
			<a href="javascript:;" ng-click="access_json('jy_edu/body_list/edit/')" class='btn btn-sm btn-danger-o external'style="border-radius: 100px;width:  7rem;font-size: .75rem">添加学员</a>
		</div>
	</div>
</div>
</div>
<div class='fui-page fui-page-current' ng-if="pagedata.op=='detail'">
    <div class='fui-content member-page'>
		<div class="fui-list-group merchgroup">
			<div class="fui-list jump">
                <a class="fui-list-media">
                    <img class="round" src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/noavatar.gif'}}" />
                </a>
                <div class="fui-list-inner">
                    <!--<div class="title">{{pagedata.user.name || '匿名学生'}}</div>
					<div class="title" style="font-size:0.65rem">手机号：{{pagedata.user.mobile}}</div> -->
					<div class="title" style="font-size:0.65rem">姓名：{{pagedata.item.name}} （{{pagedata.item.sex==1?'男':'女'}}）</div>
					<div class="title" style="font-size:0.65rem">描述：{{pagedata.item.desc || '还未来的及填写学员描述'}}</div>
                </div>
                <a class="jump" href="javascript:;">
					
				</a>
            </div>
		</div>
		<div class="weui_cells">
			<div ng-if="pagedata.item.lesson.title" class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>课程名称</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.item.lesson.title}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>校区</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.item.store.title || '无'}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>班级</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.item.classgroup.title || '无'}}({{pagedata.item.class.title}})</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>班主任</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.item.classworker.name || '无'}}</div>
			</div>
			<div ng-if="pagedata.item.lessonworker.name" class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>任课老师</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.item.lessonworker.name || '无'}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>课时情况</span>
					</div>
					<div class="weui_cell_ft">{{pagedata.item.lessonlog.num || '无'}} (剩余：{{pagedata.item.lessonlog.lass || 0}})</div>
			</div>
		</div>
		<div class="weui_btn_area" style="margin:1rem 4rem 3.8rem 4rem">
				<a  class="weui_btn weui_btn_red" style="border-radius:1rem" href="javascript:" ng-click="access_json('jy_edu/body_list/edit/id='+pagedata.item.id)">编辑</a>
		</div>
	</div>
</div>
<div class='fui-page fui-page-current' ng-if="pagedata.op=='edit'">
    <div class='fui-content member-page'>
		<div class="fui-cell-group"  style="margin-top:0">
			<div class="fui-cell-title bold" style="padding: 0.5rem 0.65rem;">学员信息</div>
			<div class="weui_cells weui_cells_form" style="margin-top:-0.5rem">
					<div class="weui_cell">
						<div class="weui_cell_hd"><label class="weui_label">学员照片</label></div>
						<div class="weui_cell_bd weui_cell_primary" >
							<ul class="weui_uploader_files" ng-if="pagedata.item.avatar">
							  <li class="weui_uploader_file" style="background-image:url({{tomedia(pagedata.item.avatar)}})"></li>
							</ul>
							<div class="weui_uploader_input_wrp">
								 <input class="weui_uploader_input" ng-model="pagedata.item.data" ng-click="image(pagedata.item,'avatar')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">
							</div>
						</div>
					</div>
					<div class="weui_cell">
						<div class="weui_cell_hd"><label class="weui_label">学员姓名</label></div>
						<div class="weui_cell_bd weui_cell_primary">
							<input ng-model="pagedata.item.name" class="weui_input" type="text" placeholder="请输入学员姓名">
						</div>
					</div>
					<div class="weui_cell">
						<div class="weui_cell_hd"><label class="weui_label">学员生日</label></div>
						<div class="weui_cell_bd weui_cell_primary">
							<input ng-model="pagedata.item.agetime" class="weui_input" type="date" placeholder="请输入学员生日">
						</div>
					</div>
					<div class="weui_cell">
						<div class="weui_cell_hd"><label class="weui_label">学员性别</label></div>
						<div class="weui_cell_bd weui_cell_primary">
									<select ng-model="pagedata.item.sex" class="form-control tpl-province">
									<option value="" selected="selected">选择性别</option>
									<option value="0" ng-selected="pagedata.item.sex==0">女</option>
									<option value="1" ng-selected="pagedata.item.sex==1">男</option>
									</select>
						</div>
					</div>
			</div>
			
		</div>
		<div class="weui_btn_area" style="margin:1rem 4rem 3.8rem 4rem">
				<a  class="weui_btn weui_btn_red" style="border-radius:1rem" href="javascript:" ng-click="post(pagedata.item,'jy_edu/body_list/post/')">提交保存</a>
		</div>
</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
scope.pagedata.loading = true;
scope.pagedata.type=0	
scope.tool.get_list('jy_edu/body_list/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_edu/body_list/getlist/');
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>